package org.anyin.gitee.cloud.center.upms.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.anyin.gitee.cloud.center.upms.model.ext.SysUserExt;
import org.anyin.gitee.cloud.center.upms.repository.SysUserRepository;
import org.anyin.gitee.cloud.center.upms.service.dto.SysUserInfoDTO;
import org.anyin.gitee.cloud.center.upms.service.dto.SysUserPageDTO;
import org.anyin.gitee.cloud.center.upms.service.dto.SysUserPermissionDTO;
import org.anyin.gitee.cloud.center.upms.service.dto.SysUserSaveDTO;

public interface SysUserService {

    SysUserRepository getRepository();

    void create(SysUserSaveDTO info);

    void modify(Long id, SysUserSaveDTO info);

    SysUserInfoDTO info(Long id);

    void delete(Long id);

    Page<SysUserExt> page(SysUserPageDTO param);

    /**
     * 查询用户权限
     * @param id 用户ID
     */
    SysUserPermissionDTO permission(Long id);
}
